package io.lx.wechat;

import java.io.File;
import java.io.IOException;

/**
 * @Author: lx
 * @Date: 2019/6/26 0026 上午 11:21
 */
public class Test_InputOrOutput {

    public static void main(String[] args) throws IOException {

        File f = new File("D:/work/cloud/bb.jpg");
        File f1 =new File(f,"cc.txt");
        if (!f.exists()) {
            System.out.println(f.createNewFile());
        }
        System.out.println(f.getName());
        System.out.println(f.getParent());
        System.out.println(f1.getName());
        System.out.println(f1.getParent());



    }
}
